<template>
  <div class="upload-container">
    <el-button  icon="el-icon-upload" size="mini" type="primary" @click="handleSubmit">
      保存
    </el-button>
  </div>
</template>

<script>
import PubSub from 'pubsub-js'
export default {
  name: 'EditorSave',
  data () {
    return {
      dialogVisible: false
    }
  },
  methods: {
    handleSubmit () {
      console.log('save')
      PubSub.publish('SAVE-CONTENT', new Date())
    }
  }
}
</script>

<style lang="stylus" rel="stylesheet/stylus">
  .editor-slide-upload
    margin-bottom: 20px
</style>
